package cmd

import (
	"fmt"
	"time"
)

func Countdown(from int) {
	tick := time.Tick(1 * time.Second)
	for countdown := from; countdown > 0; countdown-- {
		fmt.Printf("\r%2d", countdown)
		<-tick
	}
	fmt.Print("\n")
}
